const express = require('express')
const app = express()

// 导入路由
const orderRouter = require('./routers/orderRouter')

const productRouter = require('./routers/productRouter')



// 注册路由器中间件, 并指定基础路径
// app.use('/product', productRouter)
// app.use('/order', orderRouter)

app.use(orderRouter)
app.use(productRouter)



app.listen('8801', () => {
  console.log('服务已启动: http://localhost:8801')
})